using System.Collections.Generic;
using System.Threading.Tasks;
using ThridGroup.ERP.DTO;
using Volo.Abp.Application.Services;

namespace ThridGroup.ERP.WarehouseManagement
{
    /// <summary>
    /// 仓库设置服务接口
    /// </summary>
    public interface IWarehouseSettingService : IApplicationService
    {
        /// <summary>
        /// 添加仓库设置
        /// </summary>
        Task<int> AddWarehouseSetting(WarehouseSettingDto warehouseSettingDto);

        /// <summary>
        /// 获取所有仓库设置
        /// </summary>
        Task<List<WarehouseSettingDto>> GetWarehouseSettings();

        /// <summary>
        /// 获取单个仓库设置
        /// </summary>
        Task<WarehouseSettingDto> GetWarehouseSetting(int id);
        
        /// <summary>
        /// 获取指定ID的仓库信息
        /// </summary>
        /// <param name="id">仓库ID</param>
        /// <returns>仓库信息</returns>
        Task<WarehouseSettingDto> GetByIdAsync(int id);

        /// <summary>
        /// 更新仓库设置
        /// </summary>
        Task<int> UpdateWarehouseSetting(WarehouseSettingDto warehouseSettingDto);

        /// <summary>
        /// 删除仓库设置
        /// </summary>
        Task DeleteWarehouseSetting(int id);

        /// <summary>
        /// 分页获取仓库设置
        /// </summary>
        Task<(List<WarehouseSettingDto> data, int total)> GetWarehouseSettingsPaged(
            string depotCode = null, 
            string depotName = null, 
            string location = null, 
            int page = 1, 
            int limit = 10);
    }
} 